This example illustrate the use of Python generator. (it's like callback function in JavaScript - sort of.)
Create a matrix and print result:
M = [[1,2,3], # this row sum to 6
[4,5,6], # this row sum to 15
[7,8,9]] # this row sum to 24| # OSX for Hackers (Mavericks/Yosemite) | |
| # | |
| # Source: https://gist.github.com/brandonb927/3195465 | |
| #!/bin/sh | |
| # Some things taken from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Ask for the administrator password upfront |
| HP provides a downloadable "driver" for Linux for the HP 107w printer but there are NO reasonable install instructions provided, and following the "obvious" install process did not get the printer working. | |
| The closest I found to HP install instuctions once I knew more is https://support.hp.com/in-en/document/c05588857 | |
| Since I found this annoying and wasted more time on getting this printer working under Linux, I'm sharing a summary of what did work (on Debian 10). | |
| 1. Download the driver file from https://support.hp.com/us-en/drivers/selfservice/hp-laser-100-printer-series/24494339/model/24494342 from under the "Basic Drivers" menu for when the OS is set to Linux. | |
| The current version now is: "HP Laser 100 and HP Color Laser 150 Printer series Print Driver V1.00.39:00.12 5.9 MB Mar 20, 2019" |
| Meta (Instagram, Facebook) | |
| // Узлы | |
| 157.240.253.174, 157.240.253.172, 157.240.253.167, 157.240.253.63, 157.240.253.32 | |
| 157.240.252.174, 157.240.252.172, 157.240.252.167, 157.240.252.63, 157.240.252.38 | |
| 57.144.112.34, 57.144.110.1, 157.240.205.174, 87.245.223.97 | |
| // Подсети | |
| 213.102.128.0/24 | |
| 204.15.20.0/22 | |
| 199.201.0.0/16 |
| In addition to a significant decrease in hepatic lipid accumulation in the IOE group, which inhibited energy intake by propionate enrichment, hepatic lipids were also significantly reduced in the mice in the IOP group, which was largely enriched with butyrate. Compared with the IOE group, IOP had a stronger regulatory effect on hepatic metabolism and triglyceride metabolism and higher levels of TCA cycle in the host. In addition, butyrate has the ability to promote browning of white adipose tissue (WAT) to brown adipose tissue (BAT).^[@ref39],[@ref40]^ WAT stores energy, whereas BAT uses energy for heating and consequently host energy expenditure increases.^[@ref41],[@ref42]^ However, adipose tissue weight does not change after WAT browning.^[@ref43]^ Therefore, the weight of adipose tissue of mice in the IOP group dominated by butyrate was greater than that of the mice in the IOE group dominated by propionate. | |
| #!/usr/bin/env bun | |
| "use strict"; | |
| const fs = require("fs"); | |
| const { execSync } = require("child_process"); | |
| const path = require("path"); | |
| // ANSI color constants | |
| const c = { | |
| cy: '\033[36m', // cyan |
| # | |
| # You nearly always just need to import Image | |
| # from PIL(low) to do what you need | |
| # | |
| from PIL import Image | |
| # | |
| # It's convenient to import everything from colorzero | |
| # so you don't have to put "colorzero." before everything | |
| # | |
| from colorzero import * |
cave! `–` becomes often a single hyphen. Please be aware. (You see - it is actually a double hyphen :P).
| Replaces: pyenv | Purpose | Command |
| Install a specific Python version | uv python install <version> | |
| List available Python versions | uv python list | |
| Use a specific Python version in a project | uv python use <version> | |
| Automatically install the required Python version | uv run –python <version> script.py | |
| Pin the Python version for a project | uv python pin |
Instructions to obtain WireGuard details of your NordVPN account. These can be used to setup a WireGuard tunnel on your router to NordVPN.
Source: https://forum.gl-inet.com/t/configure-wireguard-client-to-connect-to-nordvpn-servers/10422/27
If you have any linux machine, use that or install a vm if you don't have one.
Get their official linux app installed. Make sure you have wireguard installed too. And set the used technology to Nordlynx by running nordvpn set technology nordlynx